  //tab 切换
$(function () {
  var oUpDiv = [...$(".ltop ul").children().children()]
  var oDownDiv = [...$(".ldown ul").children()]
  // var oUpDiv = document.querySelectorAll(".ltop ul li")
  // var oDownDiv = document.querySelectorAll(".ldown ul li")
  //console.log(oUpDiv, oDownDiv)

  oUpDiv.forEach((el, index) => {
    el.onclick = (function (n) {
      //console.log("1111")
      return function () {
        //2.
        oUpDiv.forEach(ele => ele.className = "");
        this.className = "zshow";

        oDownDiv.forEach(ele => ele.className = "");
        oDownDiv[n].className = "lshow";
      }
    })(index)
  })
})